package com.zhu.mapper;

import com.zhu.pojo.Expend;
import com.zhu.pojo.TransSum;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface ExpendMapper {
    List<Expend> getAll(int userId);

    List<Expend> getAllByAdmin();

    List<Expend> getByCondition(Expend expend);

    List<Expend> getByAdmin(Expend expend);


    List<Map<Object,Object>> getNumAndName(TransSum transSum);


    int add(Expend expend);

    int update(Expend expend);

    int delete(int id);

    TransSum getSum(TransSum transSum);
}
